package com.huan.spring6.iocxml.auto.controller;

import com.huan.spring6.iocxml.auto.dao.UserDao;
import com.huan.spring6.iocxml.auto.dao.UserDaoImpl;
import com.huan.spring6.iocxml.auto.service.UserService;

public class UserController {
    private UserService userService;

    public void setUserService(UserService userService) {
        this.userService = userService;
    }

    public void addUser(){
        System.out.println("Controller方法执行...");
        //调用service的方法
        userService.addUserService();
//        UserDao userDao = new UserDaoImpl();
//        userDao.addUserDao();
    }
}
